/*
 * BlipException.java
 *
 * Created on 10 październik 2007, 14:44
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package kosciak.blip4j;

/**
 * Exception in Blip4j
 * @author Wojtek 'KosciaK' Pietrzok
 * @since 0.1
 */
public class BlipException extends java.lang.Exception {
    
    private BlipError error;
    
    /**
     * Creates instance of BlipException with error message
     * @param error error type
     */
    public BlipException(BlipError error){
       super(error.toString());
       this.error = error;
    }

    /**
     * Gets error message
     * @return an error message describing Exception reason
     */
    public BlipError getError() {
        return error;
    }
    
}
